package pr.iceworld.fernando.oms.repository;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import pr.iceworld.fernando.entity.User;

import java.util.List;

@Mapper
public interface UserRepository {

    List<User> selectAll();

    User selectOne(@Param("user") User user);

    List<User> selectUserRolePermission(@Param("user") User user);

    User selectUserByIdOrUsernameOrEmail(@Param("id") Long id, @Param("username") String username, @Param("email") String email);

    void update(@Param("user") User user);
}